def fmt_price(price):
  # okex futures specific.
  # for example: btc price 7000.00
  # eth price: 400.000
  return ("%.2f" if price > 1000 else "%.3f") % price
